//package com.xukehong.demo.rabbitmq;
//
//import org.springframework.amqp.rabbit.annotation.RabbitListener;
//import org.springframework.stereotype.Component;
//
///**
// * @Author: xkh
// * @Date: 2019/4/30 18:36
// * @Version 1.0
// */
//@Component
//public class HelloReceive {
//    @RabbitListener(queues = "topic.message") //监听器监听指定的Queue
//    public void process1(String str){
//        System.out.println("message:"+str);
//    }
//
//    @RabbitListener(queues = "topic.messages") //监听器监听指定的Queue
//    public void process2(String str){
//        System.out.println("messages:"+str);
//    }
//}
